package com.atguigu.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

@Data
public class Product {

    private Long id;
    private String name;
    private Integer price;
    @Version //1.添加乐观锁注释 2. 在handler配置类添加乐观锁插件
    private Integer version;
}
